package com.fy.module.exam.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * <p>
 * 考试记录
 * </p>
 *
 * @author 黑马互联IT有限公司-yiyi
 * @since 2023-03-23
 */
@TableName("el_user_exam")
@ApiModel(value = "UserExam对象", description = "考试记录")
public class UserExam implements Serializable {

    private static final long serialVersionUID = 1L;

    private String id;

    @ApiModelProperty("用户ID")
    private String userId;

    @ApiModelProperty("考试ID")
    private String examId;

    @ApiModelProperty("考试次数")
    private Integer tryCount;

    @ApiModelProperty("最高分数")
    private Integer maxScore;

    @ApiModelProperty("是否通过")
    private Integer passed;

    @ApiModelProperty("创建时间")
    private Date createTime;

    @ApiModelProperty("更新时间")
    private Date updateTime;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }
    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }
    public String getExamId() {
        return examId;
    }

    public void setExamId(String examId) {
        this.examId = examId;
    }
    public Integer getTryCount() {
        return tryCount;
    }

    public void setTryCount(Integer tryCount) {
        this.tryCount = tryCount;
    }
    public Integer getMaxScore() {
        return maxScore;
    }

    public void setMaxScore(Integer maxScore) {
        this.maxScore = maxScore;
    }
    public Integer getPassed() {
        return passed;
    }

    public void setPassed(Integer passed) {
        this.passed = passed;
    }
    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }
    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    public String toString() {
        return "UserExam{" +
            "id=" + id +
            ", userId=" + userId +
            ", examId=" + examId +
            ", tryCount=" + tryCount +
            ", maxScore=" + maxScore +
            ", passed=" + passed +
            ", createTime=" + createTime +
            ", updateTime=" + updateTime +
        "}";
    }
}
